package com.fac.constant;

/**
 * 异常信息常量类
 * @author toki
 */
public class ExceptionConstant {
    // 设备相关异常
    public static final String EQUIPMENT_NOT_FOUND = "设备不存在";
    public static final String EQUIPMENT_NOT_LEASABLE = "设备不可租赁";
    public static final String EQUIPMENT_CODE_EXISTS = "设备编码已存在";

    // 订单相关异常
    public static final String LEASE_TIME_INCORRECT = "租赁时间不正确";
    public static final String REPAIR_ORDER_NOT_FOUND = "维修订单不存在";
    public static final String REPAIR_ORDER_STATUS_ERROR = "维修订单状态不正确";
    public static final String REPAIR_WORKER_NOT_FOUND = "维修工不存在";
    public static final String ERROR_ORDER_STATUS = "订单状态错误";
    public static final String ERROR_ORDER_NOT_FOUND = "订单不存在";

    // 支付相关异常
    public static final String ONLY_LEASE_DEPOSIT_REFUNDABLE = "只能退还租赁单押金";
    public static final String REFUND_EXCEEDS_DEPOSIT = "退款金额不能大于押金金额";
    public static final String ORDER_TYPE_ERROR = "订单类型错误";

    // 巡检相关异常
    public static final String INSPECTION_PLAN_NOT_FOUND = "巡检计划不存在";
    public static final String INSPECTION_RESULT_FORMAT_ERROR = "巡检结果格式错误";
    public static final String INSPECTION_ITEMS_FORMAT_ERROR = "巡检项目格式错误";

    // 设备分类相关异常
    public static final String CATEGORY_CODE_EXISTS = "分类编码已存在";
    public static final String PARENT_CATEGORY_NOT_FOUND = "父分类不存在";
    public static final String CATEGORY_HAS_CHILDREN = "该分类下有子分类，不能删除";
    public static final String CATEGORY_DISABLED = "设备分类已禁用";

    // 管理员相关异常
    public static final String ADMIN_NOT_FOUND = "管理员不存在";

    // 账户相关
    public static final String ERROR_PASSWORD = "密码错误";
    public static final String ERROR_ACCOUNT_NOT_FOUND = "账号不存在";
    public static final String ERROR_ACCOUNT_LOCKED = "账号被锁定";
    public static final String ERROR_USER_NOT_LOGIN = "用户未登录";
    public static final String ERROR_LOGIN_FAILED = "登录失败";
    public static final String ERROR_PASSWORD_EDIT_FAILED = "密码修改失败";

    // 注册相关异常
    public static final String ERROR_PASSWORD_NOT_MATCH = "两次密码不一致";
    public static final String ERROR_USERNAME_EXISTS = "用户名已存在";
    public static final String ERROR_PHONE_EXISTS = "手机号已被注册";

    public static final String ERROR_ROLE_CODE_EXISTS = "角色编码已存在";
}